package com.yilin.tms.core.entity.system.handle;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yilin.tms.core.commons.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 任务操作日志表
 * */
@Entity
@Table(name = "sys_timer_task")
@TableName("sys_timer_task")
public class TimerTask extends BaseEntity {

    @Column(name = "task_name")
    private String taskName;//【任务名称】
    @Column(name = "task_describe")
    private String taskDescribe;//任务描述
    @Column(name = "time_interval")
    private Integer timeInterval;//时间间隔
    @Column(name = "operate_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operateTime = new Date();//操作时间
    @Column(name = "next_operate_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date nextOperateTime = new Date();//操作时间

    public Date getNextOperateTime() {
        return nextOperateTime;
    }

    public void setNextOperateTime(Date nextOperateTime) {
        this.nextOperateTime = nextOperateTime;
    }

    public Integer getTimeInterval() {
        return timeInterval;
    }

    public void setTimeInterval(Integer timeInterval) {
        this.timeInterval = timeInterval;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskDescribe() {
        return taskDescribe;
    }

    public void setTaskDescribe(String taskDescribe) {
        this.taskDescribe = taskDescribe;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
}
